import request from '@/utils/request'
const moduleApi = ''
/**查询打卡活动列表 */
export function getPunchCardListApi(params) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/list`,
    method: 'get',
    params
  })
}
/**查询打卡活动详情 */
export function getPunchCardDetailsApi(id) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/${id}`,
    method: 'get'
  })
}
/**新增打卡活动 */
export function postAddPunchCardApi(data) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/create`,
    method: 'post',
    data
  })
}
/**新增打卡活动-校验 */
export function postAddPunchCardCheckApi(data) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/create/check`,
    method: 'post',
    data
  })
}
/**删除打卡活动 */
export function deletePunchCardApi(id) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/delete/${id}`,
    method: 'delete'
  })
}
/**失效打卡活动 */
export function deleteFailurePunchCardApi(id) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/failure/${id}`,
    method: 'delete'
  })
}

/**查询参与人数列表-获得奖励列表 */
export function getParticipationAwardApi(params) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/participation-award/list`,
    method: 'get',
    params
  })
}
/**查询参与人数列表 */
export function getParticipationApi(params) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/participation/list`,
    method: 'get',
    params
  })
}
/**查询打卡奖励列表 */
export function getRewardApi(params) {
  return request({
    url: moduleApi + `/operation/activity-sign-ins/reward/list`,
    method: 'get',
    params
  })
}

/**查询优惠券列表 */
export function getCouponListApi(params) {
  return request({
    url: moduleApi + `/operation/marCoupon/prizeList`,
    method: 'get',
    params
  })
}
